package org.protege.owl.examples.tab;

public class Variable
{
	private String name;
	private boolean isIndividual;
	
	public Variable(String n)
	{
		name =new String(n);
		isIndividual = false;
	}
	
	public Variable(String n, boolean isInd)
	{
		name =new String(n);
		isIndividual = isInd;
	}

	/*public Variable(Variable var)
	{
		name=var.name();
	}*/

	public String name()
	{
		return new String(name);
	}
	
	public boolean isIndividual()
	{
		return isIndividual;
	}
	
	public String toString()
	{
		return new String(name);
	}
	
	@Override public boolean equals(Object o)
	{
		if (!(o instanceof Variable)) return false;
		Variable var2 = (Variable) o;
		if (this.name().equals(var2.name()))
			return true;
		else
			return false;		
	}
	
	@Override public int hashCode()
	{
		return name.hashCode();
	}
	
}
